/*
 * @Author: aum
 * @Date: 2021-03-03 14:55:36
 * @LastEditTime: 2021-08-27 18:53:41
 * @LastEditors: aum
 * @Description:utils工具的类型
 * @FilePath: \vue3-hand-vant\src\utils\type.ts
 */
import { AxiosRequestConfig, CustomOpts } from 'axios'

export type Get = <T>(
  url: string,
  params?: object,
  config?: AxiosRequestConfig
) => Promise<T>

export type Post = <T>(
  url: string,
  params?: object,
  options?: CustomOpts,
  config?: AxiosRequestConfig
) => Promise<T>

